package com.yuma.factory.simple;

public class StaticCarFactory {

    private static MPVCar mpvCar = new MPVCar();
    private static FamilyCar familyCar = new FamilyCar();

    public static Car getCar(String type) {
        if ("mpv".equals(type)) {
            return mpvCar;
        } else if ("family".equals(type)) {
            return familyCar;
        }
        return null;
    }
}
